home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 15551 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  952 b 

  1. Path: news.bcit.bc.ca!news
  2. From: Travis Koch <travis@arcs.bcit.bc.ca>
  3. Newsgroups: comp.lang.c
  4. Subject: Linking libs with libs.
  5. Date: Fri, 19 Apr 1996 13:00:23 -0700
  6. Organization: ARCS Lab, BCIT
  7. Message-ID: <3177F0D7.7335@arcs.bcit.bc.ca>
  8. NNTP-Posting-Host: redding.arcs.bcit.bc.ca
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (WinNT; I)
  13.  
  14. we have a problem..
  15. developing a large project in Solaris 2.4, using 
  16. gcc 2.6.3 linking with f77 (don't ask).
  17.  
  18. BTW f77 just calls Sun's ld, including some fortran 
  19. libs along the way.
  20.  
  21. We have 2 static libraries which we need to keep 
  22. separate.
  23.  
  24. I'm calling a function defined in libA.a from 
  25. libB.a.  when compiling a small driver program, the  
  26. function is called only from the lib, and is 
  27. therefore not linked in.  
  28.  
  29. Question.
  30.  
  31. does anyone know of a way to force linking of a 
  32. function from a static lib, even when its not 
  33. called?  
  34.  
  35. TIA
  36.